/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.garethc.polymorphism.service.impl;

import za.ac.cput.garethc.polymorphism.model.Animal;
import za.ac.cput.garethc.polymorphism.model.Cow;
import za.ac.cput.garethc.polymorphism.model.Sheep;
import za.ac.cput.garethc.polymorphism.service.AnimalAssignmentService;

/**
 *
 * @author Gareth
 */
public class AnimalAssignmentServiceImpl implements AnimalAssignmentService
{

    @Override
    public boolean assignCow(Cow c) 
    {
        try
        {
            Animal a = c;
        }
        catch (Exception e)
        {
            return false;
        }
        
        return true;
    }

    @Override
    public boolean assignSheep(Sheep s) 
    {
        try
        {
            Animal a = s;
        }
        catch (Exception e)
        {
            return false;
        }
        
        return true;
    }
    
}
